'Declare Function bitblt Lib "GDI" (ByVal hDestDC As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal hSrcDC As Integer, ByVal XSrc As Integer, ByVal YSrc As Integer, ByVal dwRop As Long) As Integer
Declare Function CreateBitmap Lib "GDI" (ByVal nWidth As Integer, ByVal Height As Integer, ByVal nPlanes As Integer, ByVal nBitCount As Integer, ByVal lpBits As Any) As Integer
Declare Function GetBitmapBits Lib "GDI" (ByVal hBitmap As Integer, ByVal dwCount As Long, ByVal lpBits As Any) As Long
'
' Windows API device context functions
'
Declare Function SetBKColor Lib "GDI" (ByVal hDC As Integer, ByVal crColor As Long) As Long
Declare Function CreateCompatibleDC Lib "GDI" (ByVal hDC As Integer) As Integer
'Declare Function DeleteDC Lib "GDI" (ByVal hDC As Integer) As Integer
'
' Windows API GDI Object functions
'
Declare Function getpixel Lib "GDI" (ByVal hDC As Integer, ByVal X As Integer, ByVal Y As Integer) As Long
Declare Function floodfill Lib "GDI" (ByVal hDC As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal crColor As Long) As Integer
'Declare Function GetObject Lib "GDI" (ByVal hObject As Integer, ByVal nCount As Integer, lpObject As Any) As Integer
Declare Function GetObjectGDI Lib "GDI" Alias "GetObject" (ByVal hObject As Integer, ByVal nCount As Integer, ByVal lpObject As Long) As Integer
'Declare Function GetObject Lib "GDI" (ByVal hObject As Integer, ByVal nCount As Integer, lpObject As Any) As Integer
'Declare Function SelectObject Lib "GDI" (ByVal hDC As Integer, ByVal hObject As Integer) As Integer
Declare Function DeleteObject Lib "GDI" (ByVal hObject As Integer) As Integer
'
' Windows API cursor functions
'
Declare Function GetCursor Lib "User" () As Integer
Declare Function SetCursor Lib "User" (ByVal hCursor As Integer) As Integer
Declare Function CreateCursor Lib "User" (ByVal hInstance%, ByVal nXhotspot%, ByVal nYhotspot%, ByVal nWidth%, ByVal nHeight%, ByVal lpANDbitPlane As Any, ByVal lpXORbitPlane As Any) As Integer
Global hCursorPrev As Integer
'
' Windows API mouse functions
'
Declare Sub ReleaseCapture Lib "User" ()
Declare Function SetCapture Lib "User" (ByVal hWnd As Integer) As Integer
'
' Windows API miscelaneous functions
'
Declare Function PtInRect Lib "User" (lpRect As RECT, ByVal lpPoint As Any) As Integer
Declare Function GetWindowTask Lib "User" (ByVal hWnd As Integer) As Integer
Declare Function GetParent Lib "User" (ByVal hWnd As Integer) As Integer
Declare Function GetFocus Lib "User" () As Integer
Declare Function GetCurrentTask Lib "Kernel" () As Integer
Declare Function TaskFindHandle Lib "toolhelp.dll" (lpTask As TaskEntry, ByVal hTask As Integer) As Integer
'
' Constants used with bitblt
'
Global Const SRCCOPY = &HCC0020 ' (DWORD) dest = source
Global Const NOTSRCCOPY = &H330008 ' (DWORD) dest = (NOT source)
Global Const SRCAND = &H8800C6 ' (DWORD) dest = source AND dest
Global Const SRCPAINT = &HEE0086 ' (DWORD) dest = source OR dest
Global Const SRCINVERT = &H660046 ' (DWORD) dest = source XOR dest